determine if piecewise function is continuous or not